//
//  WebServiceCommonRequest.h
//  ERPWebService通用库
//
//  Created by QA on 15/8/24.
//  Copyright (c) 2015年 ShangHai HaoLei Software Technology Co., Ltd. All rights reserved.
//

#import "WebServiceRequest.h"

//接口类型
typedef enum {
    InterfaceTypeERP = 0,   //镜像库
    InterfaceTypeGroup = 1, //集团库（Data_Center库）
    InterfaceTypeOA = 2,    //OA库
} InterfaceType;

//返回数据类型
typedef enum {
    ResultBackTypeCommonUnordered = 0,
    ResultBackTypeReportForms = 1,
} ResultBackType;

@interface WebServiceCommonRequest : WebServiceRequest

@property (nonatomic, assign, readwrite) InterfaceType interfaceType;
@property (nonatomic, assign, readwrite) NSInteger stationID;
@property (nonatomic, assign, readwrite) NSInteger userID;
@property (nonatomic, assign, readwrite) NSString *moduleType;
@property (nonatomic, assign, readwrite) NSString *briefCode;
@property (nonatomic, assign, readwrite) ResultBackType resultBackType;

//移除所有传递参数
- (void)removeAllParameter;

//添加传递参数
- (void)addParameterKey:(id)key value:(id)value;

- (void)addParameterKey:(id)key value:(id)value defaults:(id)defaults;

@end
